package com.atguigu.lease.common.minio;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

// TODO: 配置类的使用
@Data
@ConfigurationProperties(prefix = "minio")
//@Component // 通过注册组件的方式，将配置文件中的属性注入到该类中
public class MinioProperties {
    private String endpoint;
    private String accessKey;
    private String secretKey;
    private String bucketName;
}
